// 容器组件
import React, { Component } from "react";
import { Route, Redirect, Switch } from "react-router-dom";
import Set from "./set/index";
import Center from "./center/index";

class My extends Component {
  constructor() {
    super();
  }

  render() {
    return (
      <div className="my">
        <Switch>
          <Route path="/my/center" component={Center} />
          <Route path="/my/set" component={Set} />
          <Redirect from="/my" to="/my/center"></Redirect>
        </Switch>
      </div>
    );
  }
}

export default My;
